package main

import (
	"fmt"
	"time"
)

func main() {
	go testPrint()
	for i := 0; i < 10; i++ {
		fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "i am main :", i)
		time.Sleep(time.Second)
	}
}

func testPrint() {
	for i := 0; i < 10; i++ {
		fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "i am test :", i)
		time.Sleep(time.Second)
	}
}
